//
//  BankModel.m
//  ZZLC
//
//  Created by colawh on 2017/12/20.
//  Copyright © 2017年 ZhongZeng. All rights reserved.
//

#import "BankModel.h"

@implementation BankModel
- (void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    
}
+(NSDictionary *)userDic{
    
    
    NSData *data = [[NSUserDefaults standardUserDefaults]objectForKey:K_BANK_MODEL];
    if ([data isKindOfClass:[NSData class]]) {
        NSDictionary *dict = [NSJSONSerialization JSONObjectWithData:data options:NSJSONReadingMutableContainers error:nil];
        return dict;
    }
    else
    {
        return nil;
    }
    
}
+ (NSString *)bankAccount
{
    NSDictionary *userDic = [self userDic];
    NSString *userID = [userDic objectForKey:@"bankAccount"];
    return userID;
}
+ (NSString *)bankCode
{
    NSDictionary *userDic = [self userDic];
    NSString *userID = [userDic objectForKey:@"bankCode"];
    return userID;
}
+ (NSString *)bankName
{
    NSDictionary *userDic = [self userDic];
    NSString *userID = [userDic objectForKey:@"bankName"];
    return userID;
}
+ (NSString *)bankURI
{
    NSDictionary *userDic = [self userDic];
    NSString *userID = [userDic objectForKey:@"bankURI"];
    return userID;
}
+ (NSString *)cardLast
{
    NSDictionary *userDic = [self userDic];
    NSString *userID = [userDic objectForKey:@"cardLast"];
    return userID;
}
+ (NSString *)czRule
{
    NSDictionary *userDic = [self userDic];
    NSString *userID = [userDic objectForKey:@"czRule"];
    return userID;
}
+ (NSString *)txRule
{
    NSDictionary *userDic = [self userDic];
    NSString *userID = [userDic objectForKey:@"txRule"];
    return userID;
}
@end
